home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
EnigmA Amiga Run 1995 November
/
EnigmA AMIGA RUN 02 (1995)(G.R. Edizioni)(IT)[!][issue 1995-11][Skylink CD].iso
/
earcd
/
guide
/
html-hea.lha
/
ARexx
/
HTML-EdWord5.rexx
< prev
next >
Wrap
OS/2 REXX Batch file
|
1995-05-27
|
1KB
|
36 lines
/* HTML-Helper Arexx script sample
* Ver : 1.1 (25th May 1995)
* Copyright: Paul Kolenbrander (InterNet: paul@serena.iaehv.nl)
* Function : Pass on the HTML commands from HTML-Helper to EdWord Pro.
* Author : Martin Reddy, <mxr@dcs.ed.ac.uk>,
Simon Dick, <sidick@essex.ac.uk>
* Input : HTMLCMD - The HTML command to be inserted.
*/
OPTIONS RESULTS /* enable return codes */
PARSE ARG HTMLCMD
ADDRESS 'EDWORD' /* The editor's ARexx port */
IF POS('><',HTMLCMD) ~= 0 THEN DO /* Is it a split command */
IsSelected
IF (RESULT = -1) THEN DO
CMD2 = right(HTMLCMD,(LENGTH(HTMLCMD)-(LASTPOS('<',HTMLCMD))+1))
CMD1 = substr(HTMLCMD,1,(LENGTH(HTMLCMD)-LENGTH(CMD2)))
SetView OFF
SetMark 3
JumpToBlockStart
InsertText CMD1
JumpToBlockEnd
InsertText CMD2
JumpToMark 3
BlockOff
SetView ON
END
ELSE
InsertText HTMLCMD
END
ELSE
InsertText HTMLCMD /* the Insert command */
EXIT /* And exit the script.*/